package com.czwj.dao;

import java.util.List;
import java.util.Map;

import com.czwj.entities.Department;
import com.czwj.entities.Jobber;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

	/**
	* @Title: updateStatus
	* @Description: TODO
	* @param map
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int updateStatus(Map<String,Object> map);

	/**
	* @Title: count
	* @Description: TODO
	* @param map
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int count(Map<String,Object> map);

	/**
	* @Title: search
	* @Description: TODO
	* @param map
	* @return 参数 
	* @return List<Department> 返回类型
	* @throws
	*/
	List<Department> search(Map<String,Object> map);

	/**
	* @Title: searchByProjectItem
	* @Description: TODO
	* @param projectitemid
	* @return 参数 
	* @return List<Department> 返回类型
	* @throws
	*/
	List<Department> searchByProjectItem(Integer projectitemid);

	/**
	* @Title: findByName
	* @Description: TODO
	* @param departmentname
	* @return 参数 
	* @return Jobber 返回类型
	* @throws
	*/
	Department findByName(String departmentname);
}